package com.alphagen.fuelprogram.vo;

public class GasolineStation {
	private String infoDate;
	private String st;
	private String city;
	private String PPG;
	private String name;
	private String address;
	private String directions;

	public String getInfoDate() {
		return infoDate;
	}

	public void setInfoDate(String infoDate) {
		this.infoDate = infoDate;
	}

	public String getSt() {
		return st;
	}

	public void setSt(String st) {
		this.st = st;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getPPG() {
		return PPG;
	}

	public void setPPG(String pPG) {
		PPG = pPG;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getDirections() {
		return directions;
	}

	public void setDirections(String directions) {
		this.directions = directions;
	}

	public boolean isDataValid(){
		if (infoDate == null && st == null && city == null && PPG == null
				&& name == null && address == null && directions == null) {
			return false;
		}
		return true;
	}
	
	public String getFullAddress() {
		StringBuffer toStr = new StringBuffer();
		toStr.append(getName());
		toStr.append(","+getAddress());
		toStr.append(","+getCity());
		return toStr.toString();
	}
	
	@Override
	public String toString() {
		StringBuffer toStr = new StringBuffer();
		toStr.append("{");
		toStr.append("DATE : \""+getInfoDate());	
		toStr.append("\", ST : \""+getSt());
		toStr.append("\", CITY : \""+getCity());
		toStr.append("\", PPG : \""+getPPG());
		toStr.append("\", NAME : \""+getName());
		toStr.append("\", ADDRESS : \""+getAddress());
		toStr.append("\", DIRECTIONS : \""+getDirections());
		toStr.append("\"}");
		return toStr.toString();
	}
}
